﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SingleOperate.ascx.cs" Inherits="ltMan_singles_SingleOperate" %>
<style>
    .stab td {
        padding: 2px 5px;
    }
</style>
<script type="text/javascript" src="/xheditor/xheditor-zh-cn.min.js?v=1.1.2"></script>
<script type="text/javascript" src="/xheditor/editorconfig.js"></script>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        var xhed;
        function beforeSave() {
            $('#<%=News_content.ClientID %>').val(xhed.getSource());
        }
        Sys.Application.add_load(function () {
            xhed = configEditor($('#<%=News_content.ClientID %>'));
            $('.RadDock').css('position', 'static');
        });
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManagerProxy runat="server" ID="proxy1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadSave">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="mainPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadDock ID="RadDock1" runat="server" Width="98%" Title="<div class='ta-center'><b>单篇信息</b></div>"
    DockMode="Docked" EnableRoundedCorners="true" Top="" Left="" DefaultCommands="None"
    Pinned="True">
    <ContentTemplate>
        <asp:Panel ID="mainPanel" runat="server">
            <telerikEx:InfoPanelNoValidation runat="server" ID="infoPanel" />
            <table class="stab" align="center" width="100%">
                <tr>
                    <td width="70" class="ta-center">
                        标题名称：
                    </td>
                    <td>
                        <telerik:RadTextBox runat="server" ID="stitle" Width="315" MaxLength="100" />
                    </td>
                </tr>
                <tr>
                    <td class="ta-center">
                        类别名称：
                    </td>
                    <td>
                        <telerik:RadTextBox runat="server" ID="stype" Width="315" MaxLength="50" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <textarea id="News_content" name="News_content" runat="server" style="width: 100%;
                            height: 330px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="ta-center">
                        <asp:Button ID="RadSave" runat="server" Text="保存" ToolTip="保存" CssClass="icon-text2 icon-save"
                            OnClick="RadSave_Click" OnClientClick="beforeSave();" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </ContentTemplate>
</telerik:RadDock>